import React, { Component } from 'react';
import { withRouter,NavLink,Link} from 'react-router-dom';

class View extends Component{
    render(){
        let id = 4;
        return(
            <div>
            <div className="header"></div>
            这是列表页面
            <br/><NavLink to={`/info/1`}>id1</NavLink>
            <br/><NavLink to={`/info/2`}>id2</NavLink>
            <br/><NavLink to={`/info/${id}`}>id4</NavLink>
            <br/><NavLink to={`/info/3`}>id3</NavLink>
            </div>
        )
    }
}
export default View;
